/**
 *
 * @param {View|EmbeddedView} shell
 * @constructor
 */
function CommentMediator(shell)
{
	"use strict";

	this.init(shell, '#comment');

	var $flickrLink = $('#flickr-comment');
	var $facebookLink = $('#fb-comment');

	this.updateNavigation = function(photo, set)
	{
		/** @type {String} */
		var albumID;

		if (set)
		{
			$flickrLink.attr('href', Enum.url.flickrPhoto.replace('[photoID]', photo.id).replace('[setID]', set.id));
		}
		if (set.facebookID)
		{
			$facebookLink
				.attr('href', Enum.url.facebookAlbum.replace('[albumID]', set.facebookID))
				.show();
		}
		else
		{
			$facebookLink.hide();
		}
	}

}
CommentMediator.inherit(BaseMediator);